package com.grupobbva.iici.entity.websphere_deploy.ORACLE_V10_1;

/**
 * Tiici_logBeanExtractor_0aa0d06a
 */
public class Tiici_logBeanExtractor_0aa0d06a extends com.ibm.ws.ejbpersistence.dataaccess.AbstractEJBExtractor {
	/**
	 * Tiici_logBeanExtractor_0aa0d06a
	 */
	public Tiici_logBeanExtractor_0aa0d06a() {
		int[] pkCols={1};
		setPrimaryKeyColumns(pkCols);

		int[] dataCols={1,2,3,4,5,6,7,8};
		setDataColumns(dataCols);
	}
	/**
	 * extractData
	 */
	public com.ibm.ws.ejbpersistence.cache.DataCacheEntry extractData(com.ibm.ws.ejbpersistence.dataaccess.RawBeanData dataRow) throws com.ibm.ws.ejbpersistence.utilpm.ErrorProcessingResultCollectionRow, com.ibm.ws.ejbpersistence.utilpm.PersistenceManagerInternalError {
		int[] dataColumns = getDataColumns();

		com.grupobbva.iici.entity.websphere_deploy.ORACLE_V10_1.Tiici_logBeanCacheEntryImpl_0aa0d06a entry=
			(com.grupobbva.iici.entity.websphere_deploy.ORACLE_V10_1.Tiici_logBeanCacheEntryImpl_0aa0d06a) createDataCacheEntry();

		entry.setDataForCOD_LOG(dataRow.getBigDecimal(dataColumns[0]));
		entry.setDataForNUM_OFICINA(dataRow.getString(dataColumns[1]));
		entry.setDataForDES_OFICINA(dataRow.getString(dataColumns[2]));
		entry.setDataForNUM_REGISTRO(dataRow.getString(dataColumns[3]));
		entry.setDataForNOM_COMPLETO(dataRow.getString(dataColumns[4]));
		entry.setDataForFEC_CONSULTA(dataRow.getTimestamp(dataColumns[5]));
		entry.setDataForTIP_CONSULTA(dataRow.getString(dataColumns[6]));
		entry.setDataForCANAL(dataRow.getString(dataColumns[7]));

		return entry;
	}
	/**
	 * extractPrimaryKey
	 */
	public Object extractPrimaryKey(com.ibm.ws.ejbpersistence.dataaccess.RawBeanData dataRow) throws com.ibm.ws.ejbpersistence.utilpm.ErrorProcessingResultCollectionRow, com.ibm.ws.ejbpersistence.utilpm.PersistenceManagerInternalError {
		int[] primaryKeyColumns = getPrimaryKeyColumns();

		com.grupobbva.iici.entity.Tiici_logKey key=
			new com.grupobbva.iici.entity.Tiici_logKey();

		key.cod_log=dataRow.getBigDecimal(primaryKeyColumns[0]);

		return key;
	}
	/**
	 * getHomeName
	 */
	public String getHomeName() {
		return "Tiici_log";
	}
	/**
	 * getChunkLength
	 */
	public int getChunkLength() {
		return 8;
	}
	/**
	 * createDataCacheEntry
	 */
	public com.ibm.ws.ejbpersistence.cache.DataCacheEntry createDataCacheEntry() {
		return new com.grupobbva.iici.entity.websphere_deploy.ORACLE_V10_1.Tiici_logBeanCacheEntryImpl_0aa0d06a();
	}
}
